package com.softserveinc.dao;

import com.softserveinc.model.User;
import org.springframework.dao.DataAccessException;
import org.springframework.security.core.GrantedAuthority;

import java.util.List;

/**
 *  AuthoritiesDAO interface

 */
public interface IAuthoritiesDAO extends IBaseDAO {
    List<GrantedAuthority> getUserAuthorities(User userDetails) throws DataAccessException;

    void revokeAuthority(GrantedAuthority authority, User userDetails) throws DataAccessException;

    void grantAuthority(GrantedAuthority authority, User userDetails) throws DataAccessException;
}
